]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowManager: Cleanup dialog a bit
authorJonas Dreßler <verdre@v0yd.nl>
Sun, 8 Dec 2019 12:10:16 +0000 (13:10 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 1 Feb 2020 07:08:33 +0000 (08:08 +0100)
This doesn't have to be a prompt-dialog, so remove the css class, also
the MessageDialogContent doesn't need the x and y_expand properties, so
remove those, too.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/942

js/ui/windowManager.js

index 629fbc21adee870ad4a88af47c70befa37df09e1..1fec105f0c75f6f064f2f003489d7f20619fc855 100644 (file)
@@ -45,7 +45,7 @@ const WINDOW_DIMMER_EFFECT_NAME = "gnome-shell-window-dimmer";
 var DisplayChangeDialog = GObject.registerClass(
 class DisplayChangeDialog extends ModalDialog.ModalDialog {
     _init(wm) {
-        super._init({ styleClass: 'prompt-dialog' });
+        super._init();
 
         this._wm = wm;
 
@@ -54,12 +54,7 @@ class DisplayChangeDialog extends ModalDialog.ModalDialog {
         let title = _("Do you want to keep these display settings?");
         let description = this._formatCountDown();
 
-        this._content = new Dialog.MessageDialogContent({
-            title, description,
-            x_expand: true,
-            y_expand: true,
-        });
-
+        this._content = new Dialog.MessageDialogContent({ title, description });
         this.contentLayout.add_child(this._content);
 
         /* Translators: this and the following message should be limited in length,